package com.xhgd.product.service.impl;


import com.xhgd.product.model.bean.Product;
import com.xhgd.product.service.ProductService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class ProductServiceImpl implements ProductService {
    @Override
    public Product getProductById(Long productId) {
        Product product = new Product();

        product.setId(productId);
        product.setPrice(new BigDecimal("99"));
        product.setNum(2);
        product.setProductname("苹果- "+ productId ) ;
        return product;
    }

}
